home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.event.ActionEvent;
- import javax.swing.AbstractAction;
- import javax.swing.tree.TreePath;
-
- class BasicTreeUI$TreeEditAction extends AbstractAction {
- // $FF: synthetic field
- private final BasicTreeUI this$0;
-
- public BasicTreeUI$TreeEditAction(BasicTreeUI var1, String var2) {
- this.this$0 = var1;
- }
-
- public void actionPerformed(ActionEvent var1) {
- if (this.this$0.tree != null && this.this$0.tree.isEnabled()) {
- TreePath var2 = BasicTreeUI.access$4(this.this$0);
- int var3 = var2 != null ? this.this$0.getRowForPath(this.this$0.tree, var2) : -1;
- if (var3 != -1) {
- this.this$0.tree.startEditingAtPath(var2);
- }
- }
-
- }
-
- public boolean isEnabled() {
- return this.this$0.tree != null && this.this$0.tree.isEnabled();
- }
- }
-